from datetime import datetime
from langchain_core.messages import ToolMessage

from langchain_core.tools import tool


@tool
def now_time():
    """获取当前时间"""
    now = datetime.now()
    return str(now)

